package javaLanguage.factory;

public interface facMethod {
    public getColor getColorOp();
}

class bluePenFac implements facMethod{
    @Override
    public getColor getColorOp() {
        return new bluePen();
    }
}

class redPenFac implements facMethod{
    @Override
    public getColor getColorOp() {
        return new redPen();
    }
}

class nullPenFac implements  facMethod{
    @Override
    public getColor getColorOp() {
        return new nullPen();
    }
}